package com.dc.server.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单表
 *
 * @author zc
 * @email c&c@cc.com
 * @date 2018-08-16 12:59:01
 */
@Data
@TableName("orders")
public class OrdersEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Integer id;
    /**
     * 商品名称
     */
    private String produceName;
    /**
     * 库存
     */
    private Integer inventory;
    /**
     * 单价
     */
    private BigDecimal price;
    /**
     *
     */
    private Date addTime;

    private Long expireDuration;

    private Date expireTime;
    /**
     * 0 未支付，1已支付  -1 已过期
     */
    private int orderStatus;

    private String orderNo;

    private Date updateTime;
}
